package fp.thetrainline.utils;

import org.openqa.selenium.Platform;
import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.selenium.remote.DesiredCapabilities;

public class ChromeDriverHolder {

	private static DesiredCapabilities capabilities = DesiredCapabilities.chrome();
	
	public static ChromeDriver getChromeDriver() {
		System.setProperty( "webdriver.chrome.driver", "D:\\chromedriver.exe" );
		
		capabilities.setPlatform( Platform.VISTA );
		capabilities.setCapability( "Version", "13" );
		
		return new ChromeDriver( capabilities );
	}
	
}
